WC_Braintree\PayPal\Buttons\Product S

Total Complexity 32
Dependencies 5
Dependents 1
Total lines 307
Lines of code 103
Logical lines of code 58
Comment lines 125
Methods 15
Properties 1

Methods 15

Method Rating Maintainability Complexity Lines of code
process_wc_api_request()
S
51 6 23
is_single_use()
S
64 5 10
init_product()
S
70 3 6
get_product()
S
68 3 7
add_button_hooks()
S
65 2 8
validate_product_data()
S
66 2 7
get_additional_button_params()
S
69 2 7
get_button_total()
S
79 2 3
get_js_handler_class_name()
S
82 1 3
is_enabled()
S
80 1 3
get_form_handler_params()
S
67 1 7
is_wc_api_request_valid()
S
77 1 3
should_validate_product_data()
S
77 1 3
get_additional_js_handler_params()
S
62 1 10
get_id()
S
80 1 3